package cn.tutu.shop.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.tutu.shop.dao.RegionDao;
import cn.tutu.shop.entity.Region;
import cn.tutu.shop.service.RegionService;

@Service
public class RegionServiceImpl implements RegionService {

	@Autowired
	private RegionDao mcRegionDao;

	@Override
	public List<Region> getByParentId(String parentId) {
		// TODO Auto-generated method stub
		return mcRegionDao.findByParentId(parentId);
	}

	@Override
	public Region getById(String regionId) {
		// TODO Auto-generated method stub
		return mcRegionDao.findById(regionId);
	}

	@Override
	public List<Region> getAll() {
		// TODO Auto-generated method stub
		return mcRegionDao.findAll();
	}

}
